













<!DOCTYPE html>
<!--[if IE 8]><html class="ie8" lang="en"><![endif]-->
<!--[if IE 9]><html class="ie9" lang="en"><![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- start: HEAD -->
<head>
<title>子项目页面</title>
<!-- start: META -->
<meta charset="utf-8" />
<!--[if IE]><meta http-equiv='X-UA-Compatible' content="IE=edge,IE=9,IE=8,chrome=1" /><![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<meta name="renderer" content="webkit"/>
<!-- end: META -->
<link rel="shortcut icon" type="image/x-icon" href="/pros/resources/images/favicon.ico"/>
<link rel="stylesheet" href="/pros/resources/css/fonts-useso/fonts.css">

<!-- bootstrap 及 bootstrap拓展 -->
<link rel="stylesheet" href="/pros/resources/plugins/bootstrap-3.3.5-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="/pros/resources/plugins/bootstrap-3.3.5-dist/css/bootstrap-expand.css">
<!-- end: 主要css -->
<!-- start: 插件 css -->

<!-- bootstrap 摸态框 -->
<link rel="stylesheet" href="/pros/resources/plugins/bootstrap-modal/css/bootstrap-modal.css">
<link rel="stylesheet" href="/pros/resources/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css">
<!-- 单选/多选 插件 -->

<!-- iCheck 多选/单选插件  -->
<link rel="stylesheet" href="/pros/resources/plugins/iCheck/skins/all.css">
<!-- 滚动条 -->

<!-- perfect-scrollbar 自定义滚动条  -->
<link rel="stylesheet" href="/pros/resources/plugins/perfect-scrollbar/src/perfect-scrollbar.css">
<!-- font-awesome -->

<!-- Font Awesome 图标字体  -->
<link rel="stylesheet" href="/pros/resources/plugins/font-awesome/css/font-awesome.min.css">
<!-- css3动画 -->

<!-- animate css3动画  -->
<link rel="stylesheet" href="/pros/resources/plugins/animate.css/animate.min.css">
<!-- select2插件 -->

<!-- animate css3动画  -->
<link rel="stylesheet" href="/pros/resources/plugins/select2-master/dist/css/select2.min.css">
<link rel="stylesheet" href="/pros/resources/plugins/select2-bootstrap/dist/select2-bootstrap.css">
<!-- 富文本编辑器 -->

<!-- 富文本编辑器 -->
<link rel="stylesheet" href="/pros/resources/plugins/summernote/dist/summernote.css">
<!-- 图片裁剪 -->

<!-- cropper 图片剪切 -->
<link rel="stylesheet" href="/pros/resources/plugins/cropper-master/dist/cropper.css">
<!-- 文件上传 -->

<!-- cropper 文件上传 -->
<!--[if lt IE 10]>
<link rel="stylesheet" href="/pros/resources/plugins/uploadify/uploadify.css" />
<![endif]-->
<!--[if gte IE 10]><!-->
<link rel="stylesheet" href="/pros/resources/plugins/uploadifive/uploadifive.css" />
<!--<![endif]-->
<!-- 表单验证 -->

<!-- 表单验证 -->
<link rel="stylesheet" href="/pros/resources/plugins/jQuery-Validation-Engine-master/css/validationEngine.jquery.css">
<!-- 日期插件 -->

<!-- 日期插件 -->
<link rel="stylesheet" href="/pros/resources/plugins/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css">
<!-- ztree 树 -->

<!-- ztree -->
<link rel="stylesheet" href="/pros/resources/plugins/zTree_v3/css/zTreeStyle/zTreeStyle.css">
<!-- 弹出框 -->

<!-- sweetalert 弹出框  -->
<link rel="stylesheet" href="/pros/resources/plugins/sweetalert-0.5.x/lib/sweet-alert.css">
<!-- 图片预览 -->

<!-- 图片预览  -->
<link rel="stylesheet" href="/pros/resources/plugins/viewer-master/dist/viewer.css">
<!-- end: 插件 css -->



<!-- start: 框架 css -->
<link rel="stylesheet" href="/pros/resources/css/styles.css">
<link rel="stylesheet" href="/pros/resources/css/styles-responsive.css">
<link rel="stylesheet" href="/pros/resources/css/plugins.css">
<link rel="stylesheet" href="/pros/resources/css/themes/theme-default.css" type="text/css" id="skin_color">
<link rel="stylesheet" href="/pros/resources/css/print.css" type="text/css" media="print"/>
<link rel="stylesheet" href="/pros/resources/css/quick-layout.css">
<!-- end: 框架 css -->
<!--[if lt IE 9]>
<script src="/pros/resources/plugins/respond.min.js"></script>
<script src="/pros/resources/plugins/excanvas.min.js"></script>
<script src="/pros/resources/plugins/jQuery/jquery-1.11.1.min.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script src="/pros/resources/plugins/jQuery/jquery-2.1.1.min.js"></script>
<!--<![endif]-->
<script>
    var basePath = '/pros';
    var tabModel = true;
    var nodePath = 'https://www.scxszz.cn:443/pros_sczz';
</script>
</head>

<!-- end: HEAD -->
<!-- start: BODY -->
<body class="single-page">

<div class="tabModel-content animated hide">
        
    <!-- start: PAGE CONTENT -->
    <div id="page-content" class="row">
        <div class="col-md-12">
            <div class="panel panel-white pt10">
                <div class="panel-body">
                    <form method="post" class="form-horizontal">
                        <input type="hidden" id="orderType" name="orderType" value="">
                        <input type="hidden" id="orderField" name="orderField" value="">

    <div class="row">
        <div class="col-xxxl-3 col-md-4 col-sm-6 col-xs-12 "><div class="form-group"><label title="年度" class="col-sm-4 control-label ell nopadding" for="sample-2">年度：</label><div class="col-sm-7">

            <select id="nd" name="nd" class="input-medium select2-auto" data-table-name="USR_SC_ZZ.t_gx_gjzxj_hz"
                    data-field-id="nd" data-field-name="nd" data-order-field="nd" data-order-type="desc"
                    data-value="2018">2018</select>
        
</div></div></div>
        <div class="col-xxxl-3 col-md-4 col-sm-6 col-xs-12 "><div class="form-group"><label title="审核状态" class="col-sm-4 control-label ell nopadding" for="null">审核状态：</label><div class="col-sm-7">

            <select id="shzt" name="shzt" class="form-control select2-auto">
                <option value="">全部</option>
                <option value="16" >已备案</option>
                <option value="12" >待辅导员审核</option>
                <option value="13" >辅导员审核通过</option>
                <option value="-13" >辅导员审核退回</option>
                <option value="14" >待院系审核</option>
                <option value="15" >院系审核通过</option>
                <option value="-15" >院系审核退回</option>
                <option value="5" >待高校审核</option>
                <option value="6" >高校审核通过</option>
                <option value="-6" >高校审核退回</option>
                <option value="9" >待省中心审核</option>
                <option value="10" >省中心审核通过</option>
                <option value="-10" >省中心审核退回</option>
                <option value="-1" >不通过</option>
            </select>
        
</div></div></div>
        <div class="col-xxxl-3 col-md-4 col-sm-6 col-xs-12 "><div class="form-group"><label title="身份证号" class="col-sm-4 control-label ell nopadding" for="null">身份证号：</label><div class="col-sm-7">

            <input type="text" id="sfzhm" name="sfzhm" class="form-control">
        
</div></div></div>
        <div class="yc">
            <div class="col-xxxl-3 col-md-4 col-sm-6 col-xs-12 "><div class="form-group"><label title="姓名" class="col-sm-4 control-label ell nopadding" for="null">姓名：</label><div class="col-sm-7">

                <input type="text" id="xm" name="xm" class="form-control"/>
            
</div></div></div>
            <div class="col-xxxl-3 col-md-4 col-sm-6 col-xs-12 "><div class="form-group"><label title="申请等级" class="col-sm-4 control-label ell nopadding" for="null">申请等级：</label><div class="col-sm-7">

                <select id="sqdj" name="sqdj" class="form-control select2-code" zdlb="zxj-sqdj"
                        value=""></select>
            
</div></div></div>
            <div class="col-xxxl-3 col-md-4 col-sm-6 col-xs-12 "><div class="form-group"><label title="贫困类型" class="col-sm-4 control-label ell nopadding" for="null">贫困类型：</label><div class="col-sm-7">

                <select id="pklx" name="pklx" class="form-control select2-code" zdlb="syd-dkyy"
                        value=""></select>
            
</div></div></div>
            
            
            
            <div class="col-xxxl-3 col-md-4 col-sm-6 col-xs-12 "><div class="form-group"><label title="专业名称" class="col-sm-4 control-label ell nopadding" for="null">专业名称：</label><div class="col-sm-7">

               	<input type="text" id="zymc" name="zymc" class="form-control"/>
           	
</div></div></div>
            <div class="col-xxxl-3 col-md-4 col-sm-6 col-xs-12 "><div class="form-group"><label title="班级" class="col-sm-4 control-label ell nopadding" for="null">班级：</label><div class="col-sm-7">

                <input type="text" id="bjmc" name="bjmc" class="form-control"/>
            
</div></div></div>
        </div>
        <div class="col-sm-12 searchbtn-group" align="right">
            <button data-toggle="dropdown" class="btn btn-sm btn-info" onclick="pages.sreach(this)">查询<i
                    class="fa fa-search"></i></button>
            <button data-toggle="dropdown" class="btn btn-sm btn-info btn-reset " onclick="tool.resetForm(this)">重置<i
                    class="fa fa-mail-reply-all"></i></button>
            <button data-toggle="dropdown" class="btn btn-sm btn-info btn-reset butyc" onclick="pages.cx()">隐藏<i
                    class="fa fa-minus-square"></i></button>
            <button data-toggle="dropdown" class="btn btn-sm btn-info btn-reset butzk" onclick="pages.cx()">展开<i
                    class="fa fa-plus-square"></i></button>
        </div>
    </div>

<hr class="dividing-line mb10"/>
<div class="row" id="czBtn" >
    <div class="col-md-12">
        <!-- 在线申请 -->
        
        
            <button type="button" class="btn btn-sm btn-green"
                    onclick="pages.lcgl(this,'1','辅导员审核','fdyshyj','fdyshsj','fdy')">审核通过<i
                    class="fa fa-check"></i>
            </button>
            <button type="button" class="btn btn-sm btn-green" onclick="pages.lcgl(this,'2')">审核退回<i
                    class="fa fa-mail-reply fa-lg"></i></button>
            <button type="button" class="btn btn-sm btn-green" onclick="pages.lcgl(this,'3')">上报<i
                    class="fa fa-cloud-upload fa-lg"></i></button>
            <button type="button" class="btn btn-sm btn-green" onclick="pages.lcgl(this,'-2')">不通过</button>
            <button type="button" class="btn btn-sm btn-green" onclick="tool.doRemove(this)">删除<i
                    class="fa fa-times"></i></button>
        
        
        
        
        
        
        
        <a class="btn btn-sm btn-green" data-startFrom="top" onclick="pages.print(this);">打印<i class="fa "></i></a>
        
            <a class="btn btn-green btn-sm" data-startFrom="top" onclick="pages.exportData('exportGxGjzxj.jsp',this)">导出
                <i class="fa fa-sign-out"></i></a>
            <a class="btn btn-green btn-sm" data-startFrom="top"
               onclick="pages.exportData('exportGxGjzxj_qg.jsp',this)">导出全国系统模版<i class="fa fa-sign-out"></i></a>
        
        
        
            <div class="btn-group pull-right">
                <button data-toggle="dropdown" class="btn btn-sm btn-green dropdown-toggle page-size">
    20 <i class="fa fa-angle-down"></i>
</button>
<ul class="dropdown-menu dropdown-light pull-right">
    <li><a data-page-size="20">20</a></li>
    <li><a data-page-size="50">50</a></li>
    <li><a data-page-size="80">80</a></li>
    <li><a data-page-size="100">100</a></li>
</ul>
            </div>
        

    </div>
</div>
<div class="dataTables_wrapper form-inline">
    <table class="table table-striped table-hover dataTable table-bordered table-order table-align-center">
        <thead>
        <tr>
            <th class="center w20">
                <div class="checkbox-table">
                    <label>
                        <input type="checkbox" class="grey selectall"><input type="hidden" id="ndFlag" value='2018'>
                    </label>
                </div>
            </th>
            <th>年度</th>
            <th>姓名</th>
            <th>身份证号</th>
            
            <th>院系名称</th>
            <th>专业名称</th>
            <th>辅导员</th>
            <th>班级</th>
            <th>贫困类型</th>
            <th>申请等级</th>
            <th>入学年月</th>
            <th>审核状态</th>
            <th>发放记录</th>
            <th>操作记录</th>
        </tr>
        </thead>
        <tbody>
        
        </tbody>
    </table>
</div>
<script type="text/javascript">
	function getData(el,sfzhm,type){
		tool.openSubviewByForm(el,'/pros_sczz/s/biz/gxGjZxjZjff/listZjff?sfzhm='+sfzhm+'&type='+type);
	}
	function getWorkDayCount(beginDay, endDay) {
        var Holiday = ["2018-10-01", "2018-10-02", "2018-10-03", "2018-10-04", "2018-10-05",beginDay, endDay];
        var WeekendsOff = ["2018-09-29","2018-09-30"];
	    /*
	     　　功能：计算一段时间内工作的天数。不包括周末和法定节假日，法定调休日为工作日，周末为周六、周日两天；
	     　　参数：
	     　　mode -推算模式（'cn'表示国人习惯；'en'表示国际习惯）
	     　　beginDay -时间段开始日期；
	     　　endDay -时间段结束日期；
	     　　*/
	    var mode = "cn";
	    var begin = new Date(beginDay);
	    var end = new Date(endDay);
	    //每天的毫秒总数，用于以下换算
	    var daytime = 24 * 60 * 60 * 1000;
	    //两个时间段相隔的总天数
	    var days = (end - begin) / daytime + 1;
	    //时间段起始时间所在周的第一天
	    var beginWeekFirstDay = nearlyWeeks(mode, 0, begin.getTime()).getTime();
	    //时间段结束时间所在周的最后天
	    var endWeekOverDay = nearlyWeeks(mode, 0, end.getTime()).getTime() + 6 * daytime;
	    //由beginWeekFirstDay和endWeekOverDay换算出，周末的天数
	    var weekEndCount = ((endWeekOverDay - beginWeekFirstDay) / daytime + 1) / 7 * 2;
	    //根据参数mode，调整周末天数的值
	    if (mode == "cn") {
	        if (end.getDay() > 0 && end.getDay() < 6)
	            weekEndCount -= 2;
	        else if (end.getDay() == 6)
	            weekEndCount -= 1;
	        if (begin.getDay() == 0) weekEndCount -= 1;
	    }
	    else {
	        if (end.getDay() < 6) weekEndCount -= 1;
	        if (begin.getDay() > 0) weekEndCount -= 1;
	    }
	    //根据调休设置，调整周末天数（排除调休日）
	    for (var i = 0; i < WeekendsOff.length; i++) {
	        var itemDay = new Date(WeekendsOff[i].split('-')[0] + "/" + WeekendsOff[i].split('-')[1] + "/" + WeekendsOff[i].split('-')[2]);
	        //如果调休日在时间段区间内，且为周末时间（周六或周日），周末天数值-1
	        if (itemDay.getTime() >= begin.getTime() && itemDay.getTime() <= end.getTime() && (itemDay.getDay() == 0 || itemDay.getDay() == 6))
	            weekEndCount -= 1;
	    }
	    //根据法定假日设置，计算时间段内周末的天数（包含法定假日）
	    for (var j = 0; j < Holiday.length; j++) {
	        var itemDay = new Date(Holiday[j].split('-')[0] + "/" + Holiday[j].split('-')[1] + "/" + Holiday[j].split('-')[2]);
	        var begin2 = new Date(beginDay.split('-')[0] + "/" + beginDay.split('-')[1] + "/" + beginDay.split('-')[2]);
	        var end2 = new Date(endDay.split('-')[0] + "/" + endDay.split('-')[1] + "/" + endDay.split('-')[2])
	        //如果法定假日在时间段区间内，且为工作日时间（周一至周五），周末天数值+1
	        if (itemDay.getTime() >= begin2.getTime() && itemDay.getTime() <= end.getTime() && itemDay.getDay() > 0 && itemDay.getDay() < 6) {
	            weekEndCount++;
	        }
	
	    }

	    return days - weekEndCount;
	}
	
	function nearlyWeeks(mode, weekcount, end) {
	    /*
	     　　功能：计算当前时间（或指定时间），向前推算周数(weekcount)，得到结果周的第一天的时期值；
	     　　参数：
	     　　mode -推算模式（'cn'表示国人习惯；'en'表示国际习惯）
	     　　weekcount -表示周数（0-表示本周， 1-前一周，2-前两周，以此推算）；
	     　　end -指定时间的字符串（未指定则取当前时间）；
	     　　*/
	    if (mode == undefined) mode = "cn";
	    if (weekcount == undefined) weekcount = 0;
	    if (end != undefined)
	        end = new Date(new Date(end));
	    else
	        end = new Date(new Date());
	    var days = 0;
	    if (mode == "cn") {
	        if (end.getDay() == 0) {
	            days = 7 - 1;
	        } else {
	            days = end.getDay() - 1;
	        }
	    } else {
	        days = end.getDay();
	    }
	    return new Date(end.getTime() - (days + weekcount * 7) * 24 * 60 * 60 * 1000);
	}
	
	function isDateTime() {
	    var val = $('#gxshsj').val();
	    var date = new Date();//获取系统当前时间
	    var month = date.getMonth() + 1;//获取系统当前的月份（0-11），则月份 +1
	    var day = date.getDate();
	    if (month < 10) {//为保证月份为两位数能进行时间比较
	        month = "0" + month;
	    }
	    if (day < 10) {
	        day = "0" + day;
	    }
	   	var year = new Date().getFullYear();
	    date = year + "-" + month + "-" + day;
	    if (val !=null && val !="") {
	   		val = year+val.substring(4);
	   		$('#gxshsj').val(val);
	    }
	    checkdate();
	}
	
	function checkdate() {
	    var yxshsj = $('#yxshsj').val();
	    var gxshsj = $('#gxshsj').val();
	    if (yxshsj != '' && gxshsj != null) {
	        if (getWorkDayCount(yxshsj, gxshsj) < 5) {
	            tool.alertWarning("学校审核日期必须晚于院系审核日期至少5个工作日！");
	            $('#gxshsj').val("");
	            return false;
	        }
	    }
	    return true;
	}
	
    var pages = {
    	text:$("#czBtn").html(),
        addDataBack: function (el, con) {
            var url = '/pros_sczz/s/stu/gxGjZxj/createValidate?' + con;
            $.post(tool.initParams(url), function (data) {
                var d = eval('(' + data + ')');
                if ((d.oper_res) == 'success') {
                    tool.openSubviewByForm(el, '/pros_sczz/s/stu/gxGjZxj/openCreate?' + con);
                } else {
                    tool.alertWarning(d.oper_msg, '');
                }
            });
        },
        lcgl: function (el, type, bt, shyj, shsj, lx) {
            var form_element = $(el).parents('.form-horizontal');
            var ids = tool.getChoseData(form_element);
            var length = ids.split(",").length;
            if (type == '1') {
                if (lx == 'yx') {
                    pages.tjsh_yx(el, type, ids, bt, shyj, shsj, lx);
                } else {
                    pages.tjsh_fdy(el, type, ids, bt, shyj, shsj, lx);
                }
            } else {
                if (type == '3') {

                    tool.report_s(el, 't_gxgjzxj_shlc', type, null, null, null, null);
                } else {
                    //tool.report_open(el,'t_gxgjzxj_shlc',type,null,null,"{\"fdyshyj\":\"\"}",true);
                    tool.report_open(el, 't_gxgjzxj_shlc', type, null, null, null, true);
                }
            }
        },
        shlc: function (el, type, depart, dwbm, yj, yjxq) {
            var form_element = $(el).parents('.form-horizontal');
            var ids = tool.getChoseData(form_element);
            var con = depart + "='" + dwbm + "' ";
            var glzd = null;
            var json = null;
            if (!ids == '') {
                con = null;
                glzd = 'wid';
            }
            if (false) {
                //json="{\"yxshyj\":\"\",\"yxpsr\":\"\"}";
                var yxshsj = pages.dataString();
                json = "{'yxshsj':'" + yxshsj + "'}";
            } else if (false) {
                //json="{\""+yj+"\":\""+yjxq+"\"}";
                var xxshsj = pages.dataString();
                json = "{'gxshsj':'" + xxshsj + "'}";
            }
            if (type == '1') {
                if (false) {
                	var url = '/pros_sczz/s/biz/gxGjZxj/yxMaxDate';
                    $.post(tool.initParams(url), {"dwbm": ids, "type": 'wid'}, function (data) {
                        pages.gxsh(el, type, glzd,data.oper_msg );
                    });
                }else{
	                tool.report_s(el, 't_gxgjzxj_shlc', type, glzd, con, json, null);
                }
            } else if (type == '2') {
                tool.report_open(el, 't_gxgjzxj_shlc', type, glzd, con, json, true);
            } else if (type == '-2') {
                tool.report_open(el, 't_gxgjzxj_shlc', type, glzd, con, json, true);
            } else if (type == '3') {
                if (false) {
                    var url = '/pros_sczz/s/biz/gxGjZxj/sfcgfpme';
                    con = " and " + depart + "='" + dwbm + "' ";
                    var canshund = $("#nd").val();
                    if (canshund == '') {
                        tool.alertWarning("请选择要上报的年度!", "");
                        return false;
                    }
                    $.post(tool.initParams(url), {"canshu": con, "ids": ids, "nd": canshund}, function (data) {
                        var d = eval('(' + data + ')');
                        if ((d.oper_res) == 'success') {
                            con = "  " + depart + "='" + dwbm + "' ";
                            tool.report_s(el, 't_gxgjzxj_shlc', type, glzd, con, null, null);
                        } else {
                            tool.alertError(d.oper_msg);
                        }
                    });
                } else {
                    tool.report_s(el, 't_gxgjzxj_shlc', type, glzd, con, null, null);
                }
            }
        },
        dataString: function () {
            var date = new Date();//获取系统当前时间
            var month = date.getMonth() + 1;//获取系统当前的月份（0-11），则月份 +1
            if (month < 10) {
                month = "0" + month;
            }//为保证月份为两位数
            date = date.getFullYear() + "-" + month + "-" + date.getDate();
            return date;
        },
        gxsh: function (el, type, parameter, yxshsj) {
            bootbox.dialog({
                title: "高校审核",
                message: '<div class="row">  ' +
                '<div class="col-md-20"> ' +
                '<form class="form-horizontal" id="form-horizontal"> ' +
	                '<div class="form-group"> ' +
	                	'<label class="col-md-2 control-label">院系审核日期:</label> ' +
		                '<div class="col-md-9"> ' +
		                '<input id ="yxshsj" type="text" class=" form-control dis " value="'+yxshsj+'" readonly="readonly" > ' +
		                '</div> ' +
	                '</div> ' +
	                '<div class="form-group"> ' +
	                	'<label class="col-md-2 control-label" >高校审核日期:</label> ' +
		                '<div class="col-md-9">' +
		                ' <input id="gxshsj" name="gxshsj" type="text" class="validate[required] form-control" data-element-type="datetimepicker" data-format="YYYY-MM-DD" onblur="isDateTime()" > ' +
		                '</div>' +
	                '</div>' +
                '</form></div>',
                buttons: {
                    close: {
                        label: "暂不审核",
                        className: "btn-default btn-sm",
                        callback: function () {
                        }
                    },
                    success: {
                        label: "审核通过",
                        className: "btn-success",
                        callback: function () {
                            if ($('#gxshsj').parents('form').validationEngine('validate')) {
                                var yxshsj = $('#yxshsj').val();
                                var gxshsj = $('#gxshsj').val();
                                var con = null;
                                var json = "{\"xxshyj\":\"" + '经评审，并在校内公示五个工作日，无异议，现报请同意该同学获得国家助学金。' + "\",\"gxshsj\":\"" + gxshsj + "\"}"
                                tool.report_s(el, 't_gxgjzxj_shlc', type, parameter, con, json, null);
                            } else {
                                return false;
                            }
                        }
                    }
                }
            });
            $('#gxshsj').datetimepicker({
                format: 'YYYY-MM-DD'
            });
        }, 
        print: function (el) {
            var ids = tool.getChoseData($('.form-horizontal'));
            if (ids == '') {
                tool.alertWarning("请勾选要打印的数据!");
                return;
            }
            var url = 'https://www.scxszz.cn/Report/ReportServer' + "?reportlet=/sc_gx_gjzxj_sqb.cpt";
            tool.openReport(el,url+"&zcd="+"true"+"&wid="+ids+"&__filename__=国家助学金申请表","国家助学金申请表");
        },
        exportData: function (param, el) {
             var form_element = $(el).parents('.form-horizontal');
            var ids = tool.getChoseData(form_element);
            var elList = form_element.find('input[type="text"],input[type="hidden"],select');
            var temp = "";
            elList.each(function () {
                var $el = $(this);
                if (isNotBlank($el.val())) {
                    temp += $el.attr('name') + '=' + $el.val() + '&';
                }
            });
            if (elList.length > 0) {
                temp = temp.substr(0, temp.length - 1);
            }
            param = param + '?' + temp;
            var dwbm = '240002192';
            if (isNotBlank(dwbm)) {
                param += "&dwbm=" + dwbm;
            }
            if (isBlank(ids)) {
                tool.alertConfirm('确定要导出所有数据吗?', '', function () {
                    tool.exportData(param, '/pros_sczz');
                })
            } else {
                param += "&wid=" + ids;
                tool.exportData(param, '/pros_sczz');
            }
        },
        tjsh_fdy: function (el, type, ids, bt, shyj, shsj, lx) {
            bootbox.dialog({
                title: bt,
                message: '<div class="row">  ' +
                '<div class="col-md-20"> ' +
                '<form class="form-horizontal" id="form-horizontal"> ' +
                '<div class="form-group"> ' +
                '<label class="col-md-2 control-label">模板:</label> ' +
                '<div class="col-md-9"> ' +
                '<select class="form-control select2-auto " items="[]" xxmb="xxmb" onchange="domb(this)">' +
                '<option value=""></option>' +
                
                '</select>' +
                '</div> ' +
                '</div> ' +
                '<div class="form-group"> ' +
                '<label class="col-md-2 control-label" for="' + shyj + '">审核意见:</label> ' +
                '<div class="col-md-9"> ' +
                '<textarea id="' + shyj + '" name="' + shyj + '" placeholder="请输入审核意见,不能超过200字！" class="validate[required,maxSize[200]] form-control dis autosize" style="resize: none;height:130px;" ></textarea> ' +
                '</div> ' +
                '</div> ' +
                '<div class="form-group"> ' +
                '<label class="col-md-2 control-label" for="' + shsj + '">审核日期:</label> ' +
                '<div class="col-md-9">' +
                ' <input id="' + shsj + '" name="' + shsj + '" type="text" class="validate[required] form-control" data-element-type="datetimepicker" data-format="YYYY-MM-DD" > ' +
                '</div>' +
                '</div>' +
                '</div></div>' +
                '</form></div></div>',
                buttons: {
                    close: {
                        label: "暂不审核",
                        className: "btn-default btn-sm",
                        callback: function () {
                        }
                    },
                    success: {
                        label: "审核通过",
                        className: "btn-success",
                        callback: function () {
                            if ($('#fdyshyj').parents('form').validationEngine('validate')) {
                                var sj = $('#' + shsj).val();
                                var yj = $('#' + shyj).val();
                                var con = null;
                                if (lx == 'yx') {
                                    con = "fdybm='" + '240002192' + "'";
                                }
                                var json = "{\"" + shsj + "\":\"" + sj + "\",\"" + shyj + "\":\"" + yj + "\"}";
                                var glzd = null;
                                if (!ids == '') {
                                    glzd = 'wid';
                                }
                                tool.report_s(el, 't_gxgjzxj_shlc', type, glzd, con, json, null);
                            } else {
                                return false;
                            }
                        }
                    }
                }
            });
            $('#' + shsj).datetimepicker({
                format: 'YYYY-MM-DD'
            });
        },
        tjsh_yx: function (el, type, ids, bt, shyj, shsj, lx) {
            bootbox.dialog({
                title: bt,
                message: '<div class="row">  ' +
                '<div class="col-md-20"> ' +
                '<form class="form-horizontal" id="form-horizontal"> ' +
                '<div class="form-group"> ' +
                '<label class="col-md-2 control-label">模板:</label> ' +
                '<div class="col-md-9"> ' +
                '<select class="form-control select2-auto " items="[]" xxmb="xxmb" onchange="domb(this)">' +
                '<option value=""></option>' +
                
                '</select>' +
                '</div> ' +
                '</div> ' +
                '<div class="form-group"> ' +
                '<label class="col-md-2 control-label" for="' + shyj + '">审核意见:</label> ' +
                '<div class="col-md-9"> ' +
                '<textarea id="' + shyj + '" name="' + shyj + '" placeholder="请输入审核意见,不能超过200字！" class="validate[required,maxSize[200]] form-control dis autosize" style="resize: none;height:130px;"></textarea> ' +
                '</div> ' +
                '</div> ' +
                '<div class="form-group"> ' +
                '<label class="col-md-2 control-label" for="' + shsj + '">审核日期:</label> ' +
                '<div class="col-md-9">' +
                ' <input id="' + shsj + '" name="' + shsj + '" type="text" class="validate[required] form-control" data-element-type="datetimepicker" data-format="YYYY-MM-DD" > ' +
                '</div>' +
                '</div>' +
                '<div class="form-group"> ' +
                '<label class="col-md-2 control-label" for="yxpsr">院系评审人:</label> ' +
                '<div class="col-md-9">' +
                ' <input id="yxpsr" name="yxpsr" type="text" class="validate[required,maxSize[20]] form-control" > ' +
                '</div>' +
                '</div>' +
                '</div></div>' +
                '</form></div></div>',
                buttons: {
                    close: {
                        label: "暂不审核",
                        className: "btn-default btn-sm",
                        callback: function () {
                        }
                    },
                    success: {
                        label: "审核通过",
                        className: "btn-success",
                        callback: function () {
                            if ($('#yxshyj').parents('form').validationEngine('validate')) {
                                var sj = $('#' + shsj).val();
                                var yj = $('#' + shyj).val();
                                var yxpsr = $('#yxpsr').val();
                                var con = null;
                                if (lx == 'yx') {
                                    con = "yxbm='" + '240002192' + "'";
                                }
                                var json = "{\"" + shsj + "\":\"" + sj + "\",\"" + shyj + "\":\"" + yj + "\",\"yxpsr\":\"" + yxpsr + "\"}";
                                var glzd = null;
                                if (!ids == '') {
                                    glzd = 'wid';
                                }
                                tool.report_s(el, 't_gxgjzxj_shlc', type, glzd, con, json, null);
                            } else {
                                return false;
                            }
                        }
                    }
                }
            });
            $('#' + shsj).datetimepicker({
                format: 'YYYY-MM-DD'
            });
        }, cx: function () {
            $(".yc").toggle();
            $(".butyc").toggle();
            $(".butzk").toggle();
        }, submitFormCallBack: function () {
            var nd = $("#nd").val();
            var nd1 = '2018';
            if (nd != nd1) {
                $("a[hide]").hide();
                $("button[hide]").hide();
            } else {
                $("a[hide]").show();
                $("button[hide]").show();
            }
        },sreach:function(el){
        tool.doSearch(el,null,pages.submitFormCallBack())
        	if($("#ndFlag").val()!=$("#nd").val()){
	        	$("[onClick*='tool.edi'],[onClick*='tool.doR'],[onClick*='pages.lcgl'],[onClick*='pages.shlc'],[onClick*='tool.importData']").remove();
        	}else{
        		$("#czBtn").html(pages.text);
        	}
        }
    }
    function isSubmitForm() {
        return true;
    }
    function domb(el) {
        var val = $(el).val();
        var nextel = $(el).parents("div").next();
        nextel.find("textarea").val(val);
    }

    $(function () {
        $(".yc").hide();
        $(".butyc").hide();
        if(false){
    		$("form").append("<a onclick ='tool.doSearch(this)'></a>");//追加一个查询事件，用于回调刷新
    	}
    });
</script>




                <input type="hidden" name="pager.currentPageno" value="1" id="yspager_currentPageno"/>
                <input type="hidden" name="pager.eachPageRows" value="20" id="eachPageRows"/>
                <div class="row mt-10" style="margin-top:1%">
                    







<div class="col-md-6 page-info">
    <div class="dataTables_info">当前显示 0 到 0 条，共 0 条记录</div>
</div>
<div class="col-md-6 page-info">
    <div class="dataTables_paginate paging_bootstrap">
        <ul class="pagination pagination-blue">
            
            <li class="disabled"><a><i class="fa fa-angle-double-left"></i></a></li>
            <li class="disabled"><a><i class="fa fa-angle-left"></i></a></li>
            
            
            <li class="active"><a data-current-page-no="1">1
            </a></li>
            
            

            
            <li class="disabled"><a><i class="fa fa-angle-right"></i></a></li>
            <li class="disabled"><a><i class="fa fa-angle-double-right"></i></a></li>
            
        </ul>
    </div>
</div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!-- end: PAGE CONTENT-->

    </div>
    




<!-- start: 必要脚本 -->


<!-- jquery-ui -->
<script src="/pros/resources/plugins/jquery-ui-1.11.4/jquery-ui.min.js"></script>

<!-- jquery-ui -->
<script src="/pros/resources/plugins/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>

<!-- blockUI -->
<script src="/pros/resources/plugins/blockUI/jquery.blockUI.js"></script>

<!-- radio,checkbox -->

<!-- 单选/多选 插件 -->
<script src="/pros/resources/plugins/iCheck/jquery.icheck.min.js"></script>
<!-- 下拉插件 -->

<!-- 下拉插件 -->
<script src="/pros/resources/plugins/select2-master/dist/js/select2.min.js"></script>
<!-- end: 必要脚本 -->
<!-- moment -->

<!-- 时间工具 -->
<script src="/pros/resources/plugins/moment/min/moment.min.js"></script>
<script src="/pros/resources/plugins/moment/locale/zh-cn.js"></script>
<!-- jquery.cookie -->

<!-- jquery.cookie -->
<script src="/pros/resources/plugins/jquery-cookie/jquery.cookie.js"></script>
<!-- 滚动条 -->

<!-- 滚动条 -->
<script src="/pros/resources/plugins/perfect-scrollbar/src/jquery.mousewheel.js"></script>
<script src="/pros/resources/plugins/perfect-scrollbar/src/perfect-scrollbar.js"></script>
<!-- 图片裁剪 -->

<!-- 图片剪裁 -->
<script src="/pros/resources/plugins/cropper-master/dist/cropper.js"></script>
<script src="/pros/resources/js/croppre.js"></script>
<!-- 文件上传 -->

<!-- 文件上传 -->
<!--[if lt IE 10]>
<script src="/pros/resources/plugins/uploadify/jquery.uploadify.min.js"></script>
<![endif]-->
<!--[if gte IE 10]><!-->
<script src="/pros/resources/plugins/uploadifive/jquery.uploadifive.min.js"></script>
<script src="/pros/resources/js/content-type.js"></script>
<!--<![endif]-->
<!-- 表单验证 -->

<!-- 表单验证 -->
<script src="/pros/resources/plugins/jQuery-Validation-Engine-master/js/jquery.validationEngine.js"></script>
<script src="/pros/resources/plugins/jQuery-Validation-Engine-master/js/languages/jquery.validationEngine-zh_CN.js"></script>
<!-- 日期插件 -->

<!-- 日期插件 -->
<script src="/pros/resources/plugins/bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
<!-- ztree -->

<!-- ztree -->
<script type="text/javascript" src="/pros/resources/plugins/zTree_v3/js/jquery.ztree.all-3.5.min.js"></script>
<!-- 提示框 -->

<!-- 提示框 -->
<script src="/pros/resources/plugins/bootbox/bootbox.min.js"></script>
<!-- 弹出框 -->

<!-- 弹出框 -->
<script src="/pros/resources/plugins/sweetalert-0.5.x/lib/sweet-alert.js"></script>
<!-- 自动大小 -->

<script src="/pros/resources/plugins/autosize/jquery.autosize.min.js"></script>
<!-- 文字截取 -->

<!-- 文字截取 -->
<script src="/pros/resources/plugins/truncate/jquery.truncate.js"></script>
<!-- 富文本编辑器 -->

<!-- 富文本编辑器 -->
<script src="/pros/resources/plugins/ueditor/ueditor.config.js"></script>
<script src="/pros/resources/plugins/ueditor/ueditor.all.min.js"></script>
<!-- 向导式表单 -->

<!-- 向导式表单 -->
<script src="/pros/resources/plugins/jQuery-Smart-Wizard/js/jquery.smartWizard.js"></script>
<!-- 图片预览 -->

<!-- 图片预览  -->
<link rel="stylesheet" href="/pros/resources/plugins/viewer-master/dist/viewer.css">
<!-- 框架 -->


<!-- start: CORE JAVASCRIPTS -->
<script src="/pros/resources/js/syscode_init.js"></script>
<script src="/pros/resources/js/syscode.js"></script>
<script src="/pros/resources/js/main.js"></script>
<script src="/pros/resources/js/frame-tool-tab-model.js"></script>
<!-- end: CORE JAVASCRIPTS -->
<script>
    tool.userloginid = 'chengongsuo';
    tool.usertype = '1, 2, 3, 4, 5';
    tool.group = '15122910383306910022,';
    $(document).ready(function () {
        $('.form-horizontal').each(function () {
            var $form = $(this);
            if (isBlank($form.attr('data-action'))) {
                $form.attr('data-action', window.location.href);
                if (window.location.href.indexOf("action") < 0) {//spring mvc
                    $form.find("#yspager_currentPageno").attr("name", "currentPageno");
                    $form.find("#eachPageRows").attr("name", "eachPageRows");
                }
            }
        });
        $('.tabModel-content').removeClass('hide').addClass("fadeInUp").one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function () {
            $(this).removeClass("fadeInUp");
        });
        Main.initTabModel();
    });
</script>
<!-- 图标 -->

<!-- 图表 -->
<script src="/pros/resources/plugins/Highcharts-4.2.6/js/highcharts.js"></script>

</body>

</html>

